import request from '@/utils/request.js'


/** 
 *
 *获取二级盲盒列表
 *
 **/
export function getMarketBoxList(data) {
	return request({
		url: '/market/market/marketList',
		method: "post",
		data
	})
}
//创建委托订单
export function createEntrust(data) {
	return request({
		url: `/market/trade/createEntrust`,
		method: 'POST',
		data
	})
}
/** 
 *
 *市值排行
 *
 **/
export function ranking(data) {
	return request({
		url: '/user/ranking',
		method: "post",
		data
	})
}

/**
 * 
 *获取二级市场列表
 **/
export function getMarketList(data) {
	return request({
		url: "/market/market/getMarketList",
		method: 'post',
		data
	})
}
//委托列表
export function entrustList(data) {
	return request({
		url: `/market/trade/entrustList`,
		method: 'POST',
		data
	})
}
//当前最高价
export function nowBiddingMaxPrice(data) {
	return request({
		url: `/market/trade/nowBiddingMaxPrice`,
		method: 'POST',
		data
	})
}

//获取委托最高最低限价
export function getEntrustPrice(data) {
	return request({
		url: `/market/trade/entrustPrice`,
		method: 'POST',
		data
	})
}


//获取二级市场列表
export function getMarketGoodsList(data) {
	return request({
		url: `/market/market/getMarketGoodsListByGoodsId`,
		method: 'POST',
		data
	})
}

//二级市场物品下架
export function changeMarketGoods(data) {
	return request({
		url: `/market/market/changeMarketGoods`,
		method: 'POST',
		data
	})
}


//获取二级藏品信息
export function getMarketGoodsInfo(data) {
	return request({
		url: `/market/market/marketGoodsDetail`,
		method: 'POST',
		data
	})
}

//获取二级市场详情
export function getMarketDetails(id) {
	return request({
		url: `/market/market/MarketDetail/ids/${id}`,
		method: 'POST',
	})
}

/**
 * 
 *获取中古店列表
 **/
export function getVintageShopMarketList(data) {
	return request({
		url: "/market/market/getVintageShopMarketList",
		method: 'post',
		data
	})
}

/**
 * 
 *获取中古店求购消耗
 **/
export function begBuyConsumption(data) {
	return request({
		url: "/market/trade/begBuyConsumption",
		method: 'post',
		data
	})
}

//中古店出售
export function handleFastSell(data){
	return request({
		url:`/market/trade/handleFastSell`,
		method:'POST',
		data
	})
}